﻿using System.Linq;
using BaseAPI.BaseViewModel;
using WebTest.Models;

namespace WebTest.ViewModels.ProjectViewModel;

public class ProjectGetOneByNameRequest : BaseGetOneViewModel<Project>
{
    public string Name { get; set; }

    public override IQueryable<Project> QueryFun(IQueryable<Project> queryable)
    {
        return queryable.Where(x => x.Name.Contains(Name));
    }
}